Skip to content

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Aug 21, 2025

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Fix #...
License MIT

While writing E2E tests for Map, I found that our title option from Polygon, Polyline, Rectangle and Circle was wrongly used, and does not make sense.

Using title won't add an HTML attribute title as I expected, it's not something supported by Google nor Leaflet.
Instead, we used it to display a popup, like the infoWindow (which is more complete).

I suggest deprecating title from 2.x and remove it in 3.0.

@Kocal Kocal self-assigned this Aug 21, 2025
@carsonbot carsonbot added Feature New Feature Map Status: Needs Review Needs to be reviewed labels Aug 21, 2025
icon?: Icon;
/**
* @deprecated Use "bridgeOptions" instead.
* @deprecated since Symfony UX Map 2.27, use "bridgeOptions" instead.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will open a PR on fabbot to valide the @deprecated since ... format on JS/TS files too.

@Kocal Kocal force-pushed the map-deprecate-title-on-polygons-polylines-rectangles-circles branch from f41de97 to c735cde Compare August 21, 2025 06:12
Kocal added a commit to Kocal/symfony-fabbot that referenced this pull request Aug 21, 2025
@Kocal Kocal force-pushed the map-deprecate-title-on-polygons-polylines-rectangles-circles branch from c735cde to 0d4eb22 Compare August 21, 2025 06:26
…` and `Circle` in favor of `infoWindow`

While writing E2E tests for Map, I found that our `title` option from `Polygon`, `Polyline`, `Rectangle` and `Circle` was wrongly used, and does not make sense.

Using `title` won't add an HTML attribute `title` as I expected, it's not something supported by Google nor Leaflet.
Instead, we used it to display a popup, like the `infoWindow` (which is more complete).

I suggest deprecating `title` from 2.x and remove it in 3.0.
@Kocal Kocal force-pushed the map-deprecate-title-on-polygons-polylines-rectangles-circles branch from 0d4eb22 to ae8b7f9 Compare August 21, 2025 06:30
@Kocal Kocal merged commit a28ad51 into symfony:2.x Aug 21, 2025
24 of 27 checks passed
@Kocal Kocal deleted the map-deprecate-title-on-polygons-polylines-rectangles-circles branch August 21, 2025 07:02
nicolas-grekas pushed a commit to symfony-tools/fabbot that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature Map Status: Needs Review Needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants